package com.loan.psychicloan.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.TextView;

import com.loan.psychicloan.R;



public class CusmoterActivity extends AppCompatActivity {



    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_customer);
        Toolbar mToolbar = findViewById(R.id.customer_back_toolbar);
        mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        TextView tv_back_toolbar_title = findViewById(R.id.back_toolbar_title);
        tv_back_toolbar_title.setText("联系客服");

        TextView tv_official_accounts = findViewById(R.id.tv_official_accounts);
        TextView tv_customer_wechat = findViewById(R.id.tv_customer_wechat);

        tv_official_accounts.setText(MainActivity.WeChact.official_accounts);
        tv_customer_wechat.setText(MainActivity.WeChact.wechat);

        tv_official_accounts.setOnLongClickListener(new View.OnLongClickListener() {
            @Override
            public boolean onLongClick(View view) {
                return false;
            }
        });

        tv_customer_wechat.setOnLongClickListener(new View.OnLongClickListener() {
            @Override
            public boolean onLongClick(View view) {
                return false;
            }
        });
    }
}
